package com.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-wemedia")
public interface FeignApi {


    @PostMapping("/wemedia/api/v1/findByName/{name}")
    public WmUser findbyname(@PathVariable("name") String name);

    /**
     *保存自媒体用户
     * @param user
     * @return
     */
    @PostMapping("/wemedia/api/v1/save")
    public ResponseResult save(WmUser user);
}
